/* tslint:disable */
/* eslint-disable */

import React, { CSSProperties, SVGAttributes, FunctionComponent } from 'react';
import { getIconColor } from './helper';

interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
  size?: number;
  color?: string | string[];
}

const DEFAULT_STYLE: CSSProperties = {
  display: 'block',
};

const IconMoney: FunctionComponent<Props> = ({ size, color, style: _style, ...rest }) => {
  const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;

  return (
    <svg viewBox="0 0 1024 1024" width={size + 'rem'} height={size + 'rem'} style={style} {...rest}>
      <path
        d="M512 96A416 416 0 0 1 928 512 416 416 0 0 1 512 928 416 416 0 0 1 96 512 416 416 0 0 1 512 96z m0 64a352 352 0 1 0 0 704 352 352 0 0 0 0-704z"
        fill={getIconColor(color, 0, '#333333')}
      />
      <path
        d="M512 315.904L708.096 512 512 708.096 315.904 512z"
        fill={getIconColor(color, 1, '#333333')}
      />
      <path
        d="M512 406.4256L406.3744 512 512 617.6256 617.5744 512 511.9488 406.3744z"
        fill={getIconColor(color, 2, '#333333')}
      />
    </svg>
  );
};

IconMoney.defaultProps = {
  size: 22,
};

export default IconMoney;
